import request from '@/utils/request'

const prefix = '/user/exam'

export function getMyExamListService(params) {
  return request({
    url: `${prefix}/list`,
    method: 'get',
    params
  });
}

export function enterExamService(data) {
  return request({
    url: `${prefix}/enter`,
    method: 'post',
    data
  });
}

export function getRankListService(params = {}) {
  return request({
    url: `${prefix}/rank/list`,
    method: 'get',
    params
  });
}